Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci/fix update versionned docs #501

Merged
merged 3 commits into from
May 22, 2024
Merged

Ci/fix update versionned docs #501

merged 3 commits into from
May 22, 2024

Conversation

bdeneux
Copy link
Contributor

@bdeneux bdeneux commented May 22, 2024

This PR introduces several fixes and improvements:

  • Corrected a typographical error in the commit message that is sent when a new version of the documentation is pushed.

  • Addressed a perceived concurrency issue which should have been fixed by 🐛 ci: fix concurrency group for publish new docs version #498. This was not an actual issue, but rather a feature of GitHub Actions where pending workflows with the same group ID are cancelled when cancel-in-progress is set to false. A request has been made to the GitHub community in 2022 to add a new parameter cancel-pending that would allow pending workflows to wait instead of being cancelled. More details can be found here.

    As a workaround, the section name has been added to the group ID, allowing one section to be built at a time. Since no common file is edited when publishing a new version of the documentation for each section, and changes are introduced via PRs rather than direct pushes, this should not cause any issues. Additionally, cancel-in-progress has been set back to true for drafts, with the section linked through the group ID.

  • Added the predicates section to the input examples.

Summary by CodeRabbit

  • Chores
    • Corrected a typo in the commit message for the GitHub workflow related to bumping the "axoned" version.
    • Updated the concurrency group name and added conditional cancellation in the workflow for updating versioned docs.
    • Introduced a new "predicates" section option in the versioned docs update workflow.

Copy link
Contributor

coderabbitai bot commented May 22, 2024

Walkthrough

The recent updates to the GitHub workflows are aimed at refining the version bump process and enhancing the flexibility of documentation updates. Specifically, a typo in the commit message for bumping the "axoned" version was corrected. Additionally, the update-versioned-docs.yml workflow was improved by adjusting the concurrency group naming, adding a conditional cancellation based on input values, and introducing a new "predicates" section option.

Changes

File Change Summary
.github/workflows/bump-axoned-version.yml Corrected a typo in the commit message related to bumping the "axoned" version.
.github/workflows/update-versioned-docs.yml Updated concurrency group name, added conditional cancellation based on inputs, and included a new "predicates" section.

🐇
In workflows where our code does dance,
We fixed a typo, seized the chance.
With sections new and names refined,
Our docs update, all aligned.
Through code and care, we now enhance,
A rabbit's touch in each advance.
🌟


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Outside diff range and nitpick comments (2)
.github/workflows/bump-axoned-version.yml (1)

Line range hint 28-35: Security Improvement: Avoid direct interpolation of GitHub context variables in scripts.

- jq '.axonedVersion |= "${{ github.event.inputs.axonedVersion }}"' "$dataFile" > "$tmpFile" &&
+ env:
+   AXONED_VERSION: ${{ github.event.inputs.axonedVersion }}
+ run: |
+   jq '.axonedVersion |= "$AXONED_VERSION"' "$dataFile" > "$tmpFile" &&
.github/workflows/update-versioned-docs.yml (1)

Line range hint 57-63: Security Improvement: Avoid direct interpolation of GitHub context variables in scripts.

- rm -rf ${{ github.event.inputs.section }}/*
+ env:
+   SECTION: ${{ github.event.inputs.section }}
+ run: |
+   rm -rf "$SECTION"/*
Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 1b2c68a and a82429c.
Files selected for processing (2)
  • .github/workflows/bump-axoned-version.yml (1 hunks)
  • .github/workflows/update-versioned-docs.yml (2 hunks)
Additional comments not posted (3)
.github/workflows/bump-axoned-version.yml (1)

42-42: The updated commit message correctly includes the dynamic version number.

.github/workflows/update-versioned-docs.yml (2)

4-5: Concurrency settings have been effectively updated to handle different sections independently.


17-17: The input description update to include "predicates" is accurate and aligns with the PR objectives.

@bdeneux bdeneux self-assigned this May 22, 2024
@bdeneux bdeneux requested review from ccamel and amimart May 22, 2024 12:15
Copy link
Member

@ccamel ccamel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job! 👍

Copy link
Member

@bot-anik bot-anik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Device URL
desktop http://localhost:3000/

Device URL
mobile http://localhost:3000/

Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead

@bdeneux bdeneux merged commit 5563ff2 into main May 22, 2024
12 checks passed
@bdeneux bdeneux deleted the ci/fix-update-versionned-docs branch May 22, 2024 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants